package com.example.imageload_sdk;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.integration.okhttp3.OkHttpUrlLoader;

public class ImageLoad {
    public static void loadMatchImg(String url, ImageView imageView){
        GlideApp.with(imageView.getContext())
                .load(url)
                .placeholder(R.mipmap.ic_launcher)
                .error(R.mipmap.ic_launcher)
                .into(imageView);
    }
    public static void loadThumbnail(String thumbnailUrl,String srcUrl, ImageView imageView) {
        GlideApp.with(imageView.getContext())
                .load(srcUrl)
                .thumbnail(GlideApp.with(imageView.getContext()).load(thumbnailUrl))
                .into(imageView);

    }
}
